package com.xinrui.attendanceweb.service.impl;

import com.xinrui.attendanceweb.mapper.ClassesMapper;
import com.xinrui.attendanceweb.pojo.Classes;
import com.xinrui.attendanceweb.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassesServiceImpl implements ClassesService {

    @Autowired
    private ClassesMapper classesMapper;

    @Override
    public List<Classes> classList() {
        return classesMapper.findAll();
    }
}
